package com.itheima_07;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Scanner;

public class logTest {
    private static final Logger LOGGER = LoggerFactory.getLogger(logTest.class);

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        try {
            int i = Integer.parseInt(s);
           // System.out.println("装换成功");
            LOGGER.info("转换成功");
        } catch (NumberFormatException e) {
            //System.out.println("转换失败,请输入数值");
            LOGGER.info("转换失败");
        }
    }
}
